/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import '../../../styles/variables.less';

.tier-card-popover {
  .ant-popover-inner {
    box-shadow: none;
    .ant-popover-inner-content {
      padding: 0;
      .tier-card {
        width: 655px;
        .ant-card-body {
          .ant-collapse-item {
            .ant-collapse-header {
              .ant-collapse-arrow {
                position: absolute;
                top: 20px;
              }
            }
            .ant-collapse-content {
              &.ant-collapse-content-active {
                border: none;
              }
              .ant-collapse-content-box {
                padding: 0 12px;
              }
            }
          }
        }
      }
    }

    .tier-card-description {
      .toastui-editor-contents ul {
        padding-left: 18px;
        font-size: 12px;
        font-weight: 400;
        color: @text-color;
        margin: 4px;
        li {
          margin: 0;
        }
      }
    }

    .radio-input .ant-radio {
      .ant-radio-inner {
        width: 14px;
        height: 14px;
        border: 1.5px solid @primary-color;
        box-shadow: none !important;
      }

      &:hover .ant-radio-inner {
        background-color: @primary-1;
      }

      &.ant-radio-checked .ant-radio-inner::after {
        box-shadow: none !important;
        transform: scale(0.35);
      }
    }
  }
}

.tier-card-content {
  max-height: 460px;
  overflow-y: auto;
}

/* Outline on focus */
.ant-radio-wrapper:focus-within .ant-radio-inner {
  outline: 2px solid @focus-outline-color;
  outline-offset: 2px;
}
